package homework.Test9;

import java.util.Arrays;

/*
定义方法比较两个数组是否相等
 */
public class Test {
    public static void main(String[] args) {
        int [] arr = {1,1,2,3};
        int [] brr = {1,1,2,3};
        int [] crr = {1,2,2,3};

        System.out.println(Arrays.equals(arr,brr));
        System.out.println(Arrays.equals(arr,crr));
    }
}
